/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.flopbox.server;


import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.Date;

/**
 *
 * @author lasse
 */
public interface RemoteFlopboxServer extends Remote {
    public int initUpload(FileInfo f) throws RemoteException;
    public int initDownload(FileInfo f) throws RemoteException;
    
    public void uploadFile(int id, byte[] ar) throws RemoteException;
    public void doneUploadingFile(int id) throws RemoteException;
    
    public byte[] downloadFile(int id) throws RemoteException;
    public void sendString(String s) throws RemoteException;
    
    public ArrayList<FileInfo> getFilesModified(ArrayList<FileInfo> files) throws RemoteException;
}
